<?php

defined( '_AppMiage' ) or die( 'Restricted access' );
if(isset($_GET['id']) && !empty($_GET['id']) && isset($_GET['idRequireddocument']) && $_GET['idRequireddocument'] != "")
{
    $document = Document::getDocumentByIdSAndIdRD($_GET['id'], $_GET['idRequireddocument']);
    $document->setDateUpload(time());
    $document->save();
}
?>
